import request from '@/utils/request'

// 查询园区食品安全档案列表
export function listOpmFoodSafeFile(query) {
  return request({
    url: '/food/opmFoodSafeFile/list',
    method: 'get',
    params: query
  })
}

// 查询园区食品安全档案详细
export function getOpmFoodSafeFile(id) {
  return request({
    url: '/food/opmFoodSafeFile/' + id,
    method: 'get'
  })
}

// 新增园区食品安全档案
export function addOpmFoodSafeFile(data) {
  return request({
    url: '/food/opmFoodSafeFile',
    method: 'post',
    data: data
  })
}

// 修改园区食品安全档案
export function updateOpmFoodSafeFile(data) {
  return request({
    url: '/food/opmFoodSafeFile',
    method: 'put',
    data: data
  })
}

// 删除园区食品安全档案
export function delOpmFoodSafeFile(id) {
  return request({
    url: '/food/opmFoodSafeFile/' + id,
    method: 'delete'
  })
}
